Organization: Electronics Department, University of York, UK
Lines: 42
I've just installed gcc-2.3.3 on our MIPS system, to enable me to port code
from my NeXT.
My initial reaction (Yeah! it works!!!) is tempered by a number of niggles that
I'd like to discuss.
My first query is the choice of object creation methods in Object. GNU uses the
Stepstone style "+new" method, while NeXT are increasingly advocating "+alloc"
and "-init". Having implemented an object which supported both techniques I
decided that supporting new (alloc+init) is a REAL pain. I'd rather see things
go the NeXT way, but more importantly we should all go the same way. I've
personaly changed my GNU runtime to support alloc and init, but this does mean
that programs may not work on other platforms.
Are there any plans to establish a more complete set of objects? Stuff like
List is easy to write, but when will we be able to expect this sort of stuff,
and what is reasonable to expect. It would be VERY counterproductive for
everyone to go off and write there own versions.
Why does GNU dislike #import so much - true it isn't realy needed but is there
realy any need for cccp to give quite such an extensive programming lesson and
policy statement every time it encounters one. #import is a lot neater than
using #defines for each include file, which is a real hack. (once again I
changed the default on my version to suppress the warning)
The above three are basicaly compatability issues, this last one is a plea for
help! Is there any way to dynamically load objects into GNU ObjC. I need this
facility desperatly, but don't know sufficient about the insides of gcc to be
able to add it. It's far more important to Objective C than to C, (due to the
encapsulation available) and I'd love to see it added to the runtime as soon as
possible. This facility is the last thing standing between me and a great
portable application (It's true! Objc C does make porting programss easier -
I've taken a prog from NS to X in a very reasonable length of time even
including the development of a graphics library). If anyone has any pointers on
this HELP!!
Despite the above stuff being negative, and prehaps somewhat rash - I haven't
examined the code in too much detail, I'm realy pleased that at last the code
is available. ObjC deserves a wider audience than it currently recieves.
Ian Stephenson
ian@ohm.york.ac.uk
>From world!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!yale!gumby!destroyer!cs.ubc.ca!uw-beaver!news.u.washington.edu!stein.u.washington.edu!wiml Sun Jan 17 00:07:57 EST 1993